package com.NPD.unimelb.balloongame;


import com.NPD.unimelb.balloongame.po.User;
import com.NPD.unimelb.npdgames.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Welcome extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.welcome);
		
//		Button btn_Pipe = (Button) findViewById(R.id.Pipe);
		Button btn_Balloon = (Button) findViewById(R.id.Balloon);
		btn_Balloon.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				User user = (User) getIntent().getSerializableExtra("user");
				Intent toBalloonGame = new Intent(Welcome.this, BalloonView.class);
				Bundle bundle = new Bundle();
				bundle.putSerializable("user", user);
				toBalloonGame.putExtras(bundle);
				startActivity(toBalloonGame);
				//Welcome.this.finish();
				
			}
		});
		
		
	}

}
